package com.hq.ims.data.entityenum;

import com.hq.ims.data.utils.LocalConstant;
import com.hq.web.penum.IBaseEnum;

import java.math.BigDecimal;

/**
 * 经营信息重复类型
 */
public enum EnumBusinessRepeatType implements IBaseEnum {

    /**
     *
     */
    Construction(0, "施工方", new BigDecimal(2), LocalConstant.CONSTRUCTION_FILTER_KEY),
    ProjectName(1, "项目名称", new BigDecimal(2), LocalConstant.PROJECT_NAME_FILTER_KEY),
    Owner(2, "业主方", new BigDecimal(4), LocalConstant.OWNER_FILTER_KEY),
    ProjectAddress(3, "项目地址", new BigDecimal(2), LocalConstant.PROJECT_ADDRESS_FILTER_KEY);

    private final int code;
    private final String typeName;
    private final String dictRepeatFilterKey;
    private final BigDecimal typeWeight;

    EnumBusinessRepeatType(int code, String typeName, BigDecimal typeWeight, String dictRepeatFilterKey) {
        this.code = code;
        this.typeName = typeName;
        this.typeWeight = typeWeight;
        this.dictRepeatFilterKey = dictRepeatFilterKey;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getValue() {
        return typeName;
    }

    public BigDecimal getTypeWeight() {
        return typeWeight;
    }

    public String getDictRepeatFilterKey() {
        return dictRepeatFilterKey;
    }
}
